<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>图书类别管理</title>
</head>
<body class="hold-transition skin-black sidebar-mini">
<div th:replace="common/fragment :: link"></div>
<div class="wrapper">
    <div th:replace="common/fragment :: navbar"></div>
    <div th:replace="common/fragment :: menu"></div>
    <div class="content-wrapper">

        <section class="content-header">
            <h1>图书类别管理</h1>
        </section>

        <section class="content">
            <div class="box">

                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/booktype/list" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <a href="#" class="btn btn-success btn-input" style="margin: 10px">
                        <span class="glyphicon glyphicon-plus"></span> 添加
                    </a>
                </form>

                <!--编写内容-->
                <div class="box-body table-responsive ">
                    <table class="table table-hover table-bordered table-striped">
                        <thead>
                        <tr>
                            <th>编号</th>
                            <th>图书分类名称</th>
                            <th>备注</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="booktype,stat:${list}">
                            <td th:text="${booktype.id}"></td>
                            <td th:text="${booktype.name}"></td>
                            <td th:text="${booktype.remarks}"></td>
                            <td>
                                <a href="#" class="btn btn-info btn-xs btn-input">
                                    <span class="glyphicon glyphicon-pencil"></span> 编辑
                                </a>
                                <a class="btn btn-danger btn-xs btn-delete"
                                   th:data-url="|/booktype/delete?id=${booktype.id}|">
                                    <span class="glyphicon glyphicon-trash"></span> 删除
                                </a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
<!--                    <div th:replace="common/fragment :: page"></div>-->
                </div>
            </div>
        </section>

    </div>
    <div th:replace="common/fragment :: footer"></div>
</div>
</body>
</html>